using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class RehabilitationMap : EntityTypeConfiguration<Rehabilitation>
    {
        public RehabilitationMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("Rehabilitation");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.crete_time).HasColumnName("crete_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.HRBaseline).HasColumnName("HRBaseline");
            this.Property(t => t.HRAT).HasColumnName("HRAT");
            this.Property(t => t.HRVO2max).HasColumnName("HRVO2max");
            this.Property(t => t.HRVO_Predict).HasColumnName("HRVO_Predict");
            this.Property(t => t.HRVO_Predict_Proportion).HasColumnName("HRVO_Predict_Proportion");
            this.Property(t => t.RRBaseline).HasColumnName("RRBaseline");
            this.Property(t => t.RRAT).HasColumnName("RRAT");
            this.Property(t => t.RRVO2max).HasColumnName("RRVO2max");
            this.Property(t => t.RRVO_Predict).HasColumnName("RRVO_Predict");
            this.Property(t => t.RRVO_Predict_Proportion).HasColumnName("RRVO_Predict_Proportion");
            this.Property(t => t.SBPBaseline).HasColumnName("SBPBaseline");
            this.Property(t => t.SBPAT).HasColumnName("SBPAT");
            this.Property(t => t.SBPVO2max).HasColumnName("SBPVO2max");
            this.Property(t => t.DBPBaseline).HasColumnName("DBPBaseline");
            this.Property(t => t.DBPAT).HasColumnName("DBPAT");
            this.Property(t => t.DBPVO2max).HasColumnName("DBPVO2max");
            this.Property(t => t.EQO2Baseline).HasColumnName("EQO2Baseline");
            this.Property(t => t.EQO2AT).HasColumnName("EQO2AT");
            this.Property(t => t.EQO2VO2max).HasColumnName("EQO2VO2max");
            this.Property(t => t.EQCO2Baseline).HasColumnName("EQCO2Baseline");
            this.Property(t => t.EQCO2AT).HasColumnName("EQCO2AT");
            this.Property(t => t.EQCO2VO2max).HasColumnName("EQCO2VO2max");
            this.Property(t => t.VEBaseline).HasColumnName("VEBaseline");
            this.Property(t => t.VEAT).HasColumnName("VEAT");
            this.Property(t => t.VEVO2max).HasColumnName("VEVO2max");
            this.Property(t => t.VEVO_Predict).HasColumnName("VEVO_Predict");
            this.Property(t => t.VEVO_Predict_Proportion).HasColumnName("VEVO_Predict_Proportion");
            this.Property(t => t.VO2Baseline).HasColumnName("VO2Baseline");
            this.Property(t => t.VO2AT).HasColumnName("VO2AT");
            this.Property(t => t.VO2VO2max).HasColumnName("VO2VO2max");
            this.Property(t => t.VO2VO_Predict).HasColumnName("VO2VO_Predict");
            this.Property(t => t.VO2VO_Predict_Proportion).HasColumnName("VO2VO_Predict_Proportion");
            this.Property(t => t.VO2HRBaseline).HasColumnName("VO2HRBaseline");
            this.Property(t => t.VO2HRAT).HasColumnName("VO2HRAT");
            this.Property(t => t.VO2HRVO2max).HasColumnName("VO2HRVO2max");
            this.Property(t => t.VO2HRVO_Predict).HasColumnName("VO2HRVO_Predict");
            this.Property(t => t.VO2HRVO_Predict_Proportion).HasColumnName("VO2HRVO_Predict_Proportion");
            this.Property(t => t.VO2KgBaseline).HasColumnName("VO2KgBaseline");
            this.Property(t => t.VO2KgAT).HasColumnName("VO2KgAT");
            this.Property(t => t.VO2KgVO2max).HasColumnName("VO2KgVO2max");
            this.Property(t => t.VO2KgVO_Predict).HasColumnName("VO2KgVO_Predict");
            this.Property(t => t.VO2KgVO_Predict_Proportion).HasColumnName("VO2KgVO_Predict_Proportion");
            this.Property(t => t.VCO2Baseline).HasColumnName("VCO2Baseline");
            this.Property(t => t.VCO2AT).HasColumnName("VCO2AT");
            this.Property(t => t.VCO2VO2max).HasColumnName("VCO2VO2max");
            this.Property(t => t.MetBaseline).HasColumnName("MetBaseline");
            this.Property(t => t.MetAT).HasColumnName("MetAT");
            this.Property(t => t.MetVO2max).HasColumnName("MetVO2max");
            this.Property(t => t.RQBaseline).HasColumnName("RQBaseline");
            this.Property(t => t.RQAT).HasColumnName("RQAT");
            this.Property(t => t.RQVO2max).HasColumnName("RQVO2max");
            this.Property(t => t.SaO2Baseline).HasColumnName("SaO2Baseline");
            this.Property(t => t.SaO2AT).HasColumnName("SaO2AT");
            this.Property(t => t.SaO2VO2max).HasColumnName("SaO2VO2max");
            this.Property(t => t.WattBaseline).HasColumnName("WattBaseline");
            this.Property(t => t.WattAT).HasColumnName("WattAT");
            this.Property(t => t.WattVO2max).HasColumnName("WattVO2max");
            this.Property(t => t.TiBaseline).HasColumnName("TiBaseline");
            this.Property(t => t.TiAT).HasColumnName("TiAT");
            this.Property(t => t.TiVO2max).HasColumnName("TiVO2max");
            this.Property(t => t.STmaxBaseline).HasColumnName("STmaxBaseline");
            this.Property(t => t.STmaxAT).HasColumnName("STmaxAT");
            this.Property(t => t.STmaxVO2max).HasColumnName("STmaxVO2max");
            this.Property(t => t.LungFunction_FVC_expect).HasColumnName("LungFunction_FVC_expect");
            this.Property(t => t.LungFunction_FEV1_expect).HasColumnName("LungFunction_FEV1_expect");
            this.Property(t => t.LungFunction_FEVFVC_Proportion).HasColumnName("LungFunction_FEVFVC_Proportion");
        }
    }
}
